//
//  ViewController.m
//  Sub-View
//
//  Created by iD Student on 7/10/13.
//  Copyright (c) 2013 Apple Inc. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];

}

- (void)dealloc {
    [_newImageView release];
    [super dealloc];
}
- (IBAction)displayButton:(id)sender {
    
    self.newImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"First-Image.png"]];
    [self.view insertSubview:self.newImageView atIndex:0];
    
}

- (IBAction)removeButton:(id)sender {

    [self.newImageView removeFromSuperview];
    
}
@end
